package com.lk.api.app;

import android.app.Activity;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.util.Log;

/**
 * Created by lk on 2014/12/24.
 */
public class PreferenceIntent extends Activity {



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        setContentView(R.layout.intentpreferencescreen);

        FragmentManager fragmentManager = getFragmentManager();
        FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();

        MyPreferenceScreen fragment1 = new MyPreferenceScreen();
        fragmentTransaction.replace(android.R.id.content, fragment1);
        fragmentTransaction.addToBackStack(null);
        fragmentTransaction.commit();




    }

    @Override
    protected void onStart() {
        Log.d("onStart","onStart");
        super.onStart();
    }

    @Override
    protected void onRestart() {
        Log.d("onRestart","onRestart");

        super.onRestart();
    }

    @Override
    protected void onResume() {
        Log.d("onResume","onResume");

        super.onResume();
    }

    @Override
    protected void onPause() {
        Log.d("onPause","onPause");
        super.onPause();
    }

    @Override
    protected void onStop() {
        Log.d("onStop","onStop");
        super.onStop();
    }

    @Override
    protected void onDestroy() {
        Log.d("onDestroy","onDestroy");
        super.onDestroy();
    }
}
